package com.propertypoint.service.business;

import java.util.List;

import com.propertypoint.persitence.dao.impl.AdvertiesmentDAO;
import com.propertypoint.persitence.dao.impl.AdvertiesmentDAOImpl;
import com.propertypoint.presentation.model.Advertiesment;
import com.propertypoint.service.general.AdvertiesmentService;

public class AdvertiesmentServiceImpl implements AdvertiesmentService {
	private AdvertiesmentDAO dao=new AdvertiesmentDAOImpl();
	@Override
	public void inserAdd(Advertiesment add) throws Exception {
		dao.inserAdd(add);
	}
	
	@Override
	public List<Advertiesment> getPublishedAdds() {
		return dao.getPublishedAdds();
	}

}
